package com.bestv.bsr.core.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;
import org.springframework.context.annotation.Configuration;

import java.util.List;
import java.util.Map;

/**
 * 九天智能推荐 配置
 *
 * @author taojiacheng
 */
@ConfigurationProperties(prefix = "recommend.jt")
@Configuration
@Data
public class JTRecommendProperties {

    /**
     * baseUrl
     */
    private String baseurl;

    /**
     * 省份
     */
    private String province;

    /**
     * cpid
     */
    private String cpid;

    /**
     * 可用的sceneId
     */
    private List<String> sceneIds;


    /**
     * 主题推荐类型
     */
    private String topicRecType;

    /**
     * itemType 映射关系
     */
    private Map<String, String> itemTypeMap;


    /**
     * 最大推荐节目数
     */
    private int maxRecommendSize;


    /**
     * sentinel 熔断配置
     */
    @NestedConfigurationProperty
    private SentinelProperties sentinel;

}
